package test;

import java.util.Scanner;

public class test_Scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        String j = sc.nextLine();
        System.out.printf("%d\n%s", i, j);
        int i1 = sc.nextInt();
        sc.nextLine();
        String j1 = sc.nextLine();
        System.out.printf("%d\n%s", i1, j1);
    }
}
